package com.example.obmb.common.base;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 分页参数
 *
 * @author qiuhongyu
 * @date 2025/2/18 16:46
 */
@Data
@NoArgsConstructor
public class PageParams<T> {

    /**
     * 查询参数
     */
    private T model;

    /**
     * 每页显示数据
     */
    private Integer size = 10;

    /**
     * 当前页
     */
    private Integer current = 1;


    public PageParams(Integer current, Integer size) {
        this.size = size;
        this.current = current;
    }
}
